package com.gitee.chili.leisure.core;

/**
 * 接受者类型定义
 */
public enum ReceiverType {

    /**
     * netty 消息处理器
     */
    NETTY_SERVER_RECEIVER(Receiver.nettyServerReceiver),
    ;

    DefaultMessageReceiver receiver;

    ReceiverType(DefaultMessageReceiver receiver) {
        this.receiver = receiver;
    }

    public DefaultMessageReceiver getReceiver() {
        return receiver;
    }
}
